package com.qf.product.controller;

import com.qf.core.vo.R;
import com.qf.product.entity.Area;
import com.qf.product.service.AreaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 行政区划表 前端控制器
 * </p>
 *
 * @author yxh
 * @since 2023-10-26
 */
@RestController
@CrossOrigin
@RequestMapping("/area")
public class AreaController {

    @Autowired
    private AreaService areaService;

    @GetMapping("/all")
    public R<List<Area>> all(){

        return new R<List<Area>>(true,0,"查询成功",areaService.list());
    }






}
